<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
          xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head  th:replace="top::html">
  <title>添加对接详情</title>
</head>

<body class="fixed hold-transition skin-blue">
<div class="wrapper">

  <!-- Main Header -->

     <div th:replace="tophtml::html" ></div>
  <!-- Left side column. contains the logo and sidebar -->
  <div th:replace="left::html" ></div>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
		    <section class="content-header">
		      <h1>
		        添加对接详情
		        <small></small>
		      </h1>
		      <ol class="breadcrumb">
		        <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
		        <li class="active">Here</li>
		      </ol>
		    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      <!--------------------------
        | Your Page Content Here |
        -------------------------->
        <form th:action="@{/customer/addButtDetails}" method="post" th:object="${buttDeteils}" enctype="multipart/form-data" >
        <input type="hidden" name="detailPid" th:value="${detailPid}"/>
         <input type="hidden" name="origType" th:value="${origType}"/>
        <input type="hidden" name="customerPid" th:value="${customerPid}"/>
        <div th:if="${project}">
         		 <div class="form-group">
                  <label>项目ID</label>
                  <input type="hidden" name="projectNumber" th:value="${project.pid}"/>
                  <input type="text" class="form-control" placeholder="Enter ..." name="projectId" th:value="'R'+${project.projectNumber}">
        		 </div>
        		 <label>项目名称</label>
                  <input type="text" class="form-control" placeholder="Enter ..." name="projectName" th:value="${project.projectName}">
         </div>
        
        
        <div th:if="${demand}">
          		<div class="form-group">
                  <label>需求ID</label>
                  <input type="hidden" name="demandNumber" th:value="${demand.pid}"/>
                  <input type="text" class="form-control" placeholder="Enter ..." name="demandId" th:value="'D'+${demand.demandNumber}">
        		 </div>
        		 <div class="form-group">
                  <label>需求内容</label>
                  <input type="text" class="form-control" placeholder="Enter ..." name="demandName" th:value="${demand.demandName}">
        		 </div>
        </div>
        
        
        <div th:if="${person}">
        	  <div class="form-group">
                  <label>专家ID</label>
                   <input type="hidden" name="expertNumber" th:value="${person.pid}"/>
                  <input type="text" class="form-control" placeholder="Enter ..." name="expertId" th:value="${person.expertNumber}">
        	 </div>
        	  <div class="form-group">
                  <label>专家姓名</label>
                  <input type="text" class="form-control" placeholder="Enter ..." name="name" th:value="${person.name}">
        	 </div>        	 
        </div>
        
        
		<div th:if="${customer}">
			  <div class="form-group">
                  <label>客户ID</label>
                   <input type="hidden" name="customerNumber" th:value="${customer.pid}"/>
                  <input type="text" class="form-control" placeholder="Enter ..." name="customerId" th:value="${customer.customerNumber}">
        	 </div>
        	 <div class="form-group">
                  <label>客户名称</label>
                  
                  <input type="text" class="form-control" placeholder="Enter ..." name="customerName" th:value="${customer.customerName}">
        	 </div>
        </div>
        
        
		<div th:if="${conference}">
		
			  <div class="form-group">
                  <label>会议ID</label>
                  <input type="hidden" name="conferenceNumber" th:value="${conference.pid}"/>
                  <input type="text" class="form-control" placeholder="Enter ..." name="conferenceId" th:value="${conference.conferenceNumber}">
         	</div>
          <div class="form-group">
                  <label>会议名称</label>
                  <input type="text" class="form-control" placeholder="Enter ..." name="conferenceName" th:value="${conference.conferenceName}">
         	</div>
        </div>
        
    <div class="form-group">
        <label>对接状态状态</label>
          <select class="form-control" name="buttStatus">
            <option th:each="psd : ${buttStatus}" th:value="${psd.names}" th:text="${psd.worth}" th:selected="${psd.names eq buttDe.buttStatus+''}" >----</option>
            </select>
    </div>
    		<div class="form-group">
		                <label>对接时间:</label>
		
		                <div class="input-group date">
		                  <div class="input-group-addon">
		                    <i class="fa fa-calendar"></i>
		                  </div>
		                  <input type="text" class="form-control pull-right" id="datepicker" name="buttDataTime" th:value="${buttDe.buttDataTime}" >
		                </div>
		                <!-- /.input group -->
	</div> 
    
    <div class="form-group">
						<label for="exampleInputFile">对接附件</label> <input type="file" name="buttDetailsFiles" id="buttDetailsFiles">

	</div>
    
    <div class="form-group">
                        <label>对接详情</label>
                        <textarea class="form-control" name="buttDetails" th:placeholder="${details}"></textarea>
                    </div>
        
<div class="box-footer">
                <button type="submit" class="btn btn-primary">添加</button>
                <button type="button" class="btn btn-primary" onclick="window.history.go(-1)" style="margin-left: 30px;">返回</button>
</div>

</form>
    </section>
    <!-- /.content -->
  </div>
 <!-- /.content-wrapper -->

  <!-- Main Footer -->

  <div th:replace="footer::html" ></div>

  <div class="control-sidebar-bg"></div>
</div>

<div th:replace="bottom::html" ></div>
</body>
</html>